package com.lufei.message_system.Service;

import com.lufei.message_system.Data.PageResult;
import com.lufei.message_system.Data.QuestionVD.QuestionCreateDTO;
import com.lufei.message_system.Data.QuestionVD.QuestionUpdateDTO;
import com.lufei.message_system.Data.QuestionVD.QuestionVO;
import com.lufei.message_system.Data.Result;

import java.util.List;

public interface QuestionService {

    //创建新问题
    Result createQuestion(QuestionCreateDTO createDTO);

    // 批量创建问题
    Result batchCreateQuestions(List<QuestionCreateDTO> createDTOs);

    //ID获取问题详情
    Result<QuestionVO> getQuestion(Long id);

    //更新问题信息
    Result updateQuestion(Long id, QuestionUpdateDTO updateDTO);

    //删除问题
    Result deleteQuestion(Long id);

    //分页查询问题列表
    Result<PageResult<QuestionVO>> listQuestions(Integer page, Integer size, String content, String dimension);

    Result<List<QuestionVO>> getAllQuestions();
}